package com.reading.service.impl;

import com.reading.mapper.DailyTasksMapper;
import com.reading.pojo.DailyTasks;
import com.reading.pojo.ReadingTime;
import com.reading.service.DailyTasksService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DailyTasksServiceImpl implements DailyTasksService {

    @Autowired
    private DailyTasksMapper dailyTasksMapper;

    @Override
    public DailyTasks findList(Integer userId) {
        return dailyTasksMapper.findList(userId);
    }

    @Override
    public void updateCommentNumber(Integer userId) {
        dailyTasksMapper.updateCommentNumber(userId);
    }

    @Override
    public void updateChapterNumber(Integer userId) {
        dailyTasksMapper.updateChapterNumber(userId);
    }

    @Override
    public void updateReadingShell(Integer userId) {
        dailyTasksMapper.updateReadingShell(userId);
    }

    @Override
    public void updateAll() {
        dailyTasksMapper.updateAll();
    }

    @Override
    public void addDailyTasks(Integer id) {
        dailyTasksMapper.addDailyTasks(id);
    }

    @Override
    public void updateReadingTime(ReadingTime readingTime) {
        dailyTasksMapper.updateReadingTime(readingTime);
    }
}
